package com.tedu;

/**
 * @author CCFu
 * @version 1.0
 * @date 2021/12/22 17:39
 */
public class T2 {
    public static void main(String[] args) {
        B a1 = new B();
//        A a1 = new B();
//        a1.d();报错  接口没有d（）这个方法
        a1.d();
    }
}
interface A{
    void aa();
}
class B implements A{

    @Override
    public void aa() {
        System.out.println("b");
    }
    public void d(){
        System.out.println("d");
    }
}
class C implements A{

    @Override
    public void aa() {
        System.out.println("c");
    }
}